package code.snippet

import net.liftweb.http.S
import scala.xml._
import net.liftweb.common.Full

class Home {
  def javascript(ns: NodeSeq): NodeSeq = {
    for {
      sess <- S.session
    } yield {
      val clientProxy = sess.serverActorForClient("messageFromSever")
      serverActor.set(Full(clientProxy))
    }
    NodeSeq.Empty
  }
}
